{layout name="layout" /}
<script type="text/javascript">
    layui.use('layim', function() {
        var layim = layui.layim;
        layim.config({
            title: '客服', minRight: '0px', brief: true, isfriend: false, isgroup: false,
            init: { url: "{:url('swoole/imtalk/ajaxinit')}" },
            tool: [{ alias: 'code', title: '代码', icon: '&#xe64e;' }]
        }).chat(
                { id: 1, name: '在线客服一', type: 'kefu', avatar: 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1' }
        ).chat(
                { id: 2, name: '在线客服二', type: 'kefu', avatar: 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1' }
        ).chat(
                { id: 3, name: '在线客服三', type: 'kefu', avatar: 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1' }
        );
        layim.setChatMin(); //收缩聊天面板
    });
</script>